extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]灭火器"
	info = "佩戴者造成治疗时，使目标身上的负面效果层数降低1层\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.healHpL = 0.25
	att.def = 20
	att.maxHp = 500

func _connect():
	._connect()
	masCha.connect("healCha", self, "healCha")

func healCha(cha):
	for i in cha.buffs:
		if i.get("type") != config.EQUITYPE_EQUI and i.get("dispel") == 1 and i.get("life") != null and i.get("life") > 0:
			i.life -= 1

func upgrade():
	name = "[color=#FFFF00][史诗]灭火器"
	info = "佩戴者造成治疗时，使目标身上的负面效果层数降低1层"
	att.healHpL = 0.5
	att.def = 40
	att.maxHp = 1000


